#!/bin/bash
if(test -L $0) then auxlink=`ls -l $0 | sed 's/^[^>]*-> //g'`; M_HOME=`dirname $auxlink`/; else M_HOME=`dirname $0`/; fi; cd $M_HOME
. ../before || exit 1
sb2 ./configure --prefix=/usr --exec-prefix=/ --sysconfdir=/etc --enable-login-utils --enable-login-chown-vcs --with-fsprobe=builtin --without-pam --disable-wall --disable-require-password --disable-nls
sb2 make
sb2 make DESTDIR=$ROOTFS/ install
echo 'root::0:0:root:/root:/bin/bash' > $ROOTFS/etc/passwd
chmod -s $ROOTFS/bin/mount # mount is owned by normal user. with '+s', it cannot work.
touch $ROOTFS/.`basename $0`
